package com.ruoyi.project.system.common.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author xhq
 * @title MyTree
 * @create 2:50 2022/7/23
 */
@Data
public class MyTree implements Serializable {

    private static final long serialVersionUID = 5425504279379275033L;

    private String id;
    private String pId;
    private String value;
    private String name;
    private String item;
    private String type;
    private String typeName;
    private String sort;
    private String fraction;
    private String fraction2;
    private String answer;
    private String answer2;
    private String itemKey;
    private Boolean hasChildren = false;
    private List<MyTree> children = new ArrayList<>();
    private String correct; // 是否正确
    private String required; // 是否必做
    private String manual; // 是否手工维护选项
    private String value2; // 手工维护选项值
    private String number; // 自定义序号

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
